package com.woniu.liuzhougov.businessproject.vo;

import java.util.List;

/**
 * @Description: 前端返回值模型，只需要调
 * 用参数为List的有参构造函数，把自己想显示
 * 在table上的数据以List的形式传进来，
 * 生成新的Result对象，再把Result对象返回
 * 到List处即可。
 * @author: Chris
 * @createDate: 2019/4/18 0018
 * @version: 1.0
 */
public class Result {

    private String code;
    private String msg;
    private Integer count;
    private Object data;

    public Result() {
    }

    //一般调用这个构造函数生成返回对象
    public Result(Object data){
        this.code = "";
        this.msg = "";
        this.count = 0;
        this.data = data;
    }

    public Result(String code) {
        this.code = code;
    }

    public Result(String code, String msg, Integer count, Object data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
